package cn.lasse.demo.interfaces.dto;

import java.util.Date;

/**
 * 用户DTO
 */
public class UserDTO {

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 用户昵称
     */
    private String userNickName;

    /**
     * 注册时间
     */
    private Date createTime;

    public UserDTO() {
    }

    public UserDTO(String userId, String userNickName, Date createTime) {
        this.userId = userId;
        this.userNickName = userNickName;
        this.createTime = createTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserNickName() {
        return userNickName;
    }

    public void setUserNickName(String userNickName) {
        this.userNickName = userNickName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("");
        sb.append("").append(userId);
        sb.append("|").append(userNickName);
        sb.append("|").append(createTime);
        return sb.toString();
    }

}
